package org.easy.tool.controller;

import org.easy.tool.common.R;
import org.easy.tool.service.IMark;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedHashMap;

/**
 *  标签
 *
 * @author Valley
 * @since 2024-09-04 22:51:14
 */
@RestController
@RequestMapping("/mark")
@CrossOrigin
public class MarkController {

    @Autowired
    IMark markService;

    @RequestMapping("submitMark")
    public R submitMark(@RequestBody(required = false)LinkedHashMap data) throws Exception {
        return R.ok(markService.submitMark(data));
    }

    @RequestMapping("getMarkList")
    public R getMarkList(@RequestBody(required = false)LinkedHashMap data) throws Exception {
        return R.ok(markService.getMarkList(data));
    }

}
